package com.leo.erp.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("tb_log")
public class Log {
	@TableId(value = "logId", type = IdType.AUTO)
	private int logId;
	
	@TableField("userID")
	private int userID;//操作用户ID
	
	@TableField("operation")
	private String operation;//操作模块名称
	
	@TableField("clientIP")
	private String clientIP;//客户端IP
	
	@TableField("createTime")
	private Date createTime;//创建时间
	
	@TableField("status")
	private int status;//操作状态 0==成功，1==失败
	
	@TableField("contentDetails")
	private String contentDetails;//操作详情
	
	@TableField("remark")
	private String remark;//备注信息
	
	@TableField("tenantId")
	private int tenantId;//租户id
	
	//日期查询条件
	@TableField(exist = false)
	private String beginTime;
	@TableField(exist = false)
	private String endTime;

	public int getLogId() {
		return logId;
	}

	public void setLogId(int logId) {
		this.logId = logId;
	}

	public int getUserID() {
		return userID;
	}

	public void setUserID(int userID) {
		this.userID = userID;
	}

	public String getOperation() {
		return operation;
	}

	public void setOperation(String operation) {
		this.operation = operation == null ? null : operation.trim();
	}

	public String getClientIP() {
		return clientIP;
	}

	public void setClientIP(String clientIP) {
		this.clientIP = clientIP == null ? null : clientIP.trim();
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getContentDetails() {
		return contentDetails;
	}

	public void setContentDetails(String contentDetails) {
		this.contentDetails = contentDetails == null ? null : contentDetails.trim();
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark  == null ? null : remark.trim();
	}

	public int getTenantId() {
		return tenantId;
	}

	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}

	public String getBeginTime() {
		return beginTime;
	}

	public void setBeginTime(String beginTime) {
		this.beginTime = beginTime;
	}

	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	
	
	
}
